﻿@model IEnumerable<RenWuZhi.Models.rwz_PeopleContent>
@{
    ViewBag.Title = "人物志列表";
}
@section    Head{
    <style type="text/css">
        #bodycontent
        {
            margin: auto;
            width: 990px;
            text-align: center;
        }
        A
        {
            color: #17387d;
            text-decoration: none;
        }
        A:link
        {
            color: #17387d;
            text-decoration: none;
        }
        A:visited
        {
            color: #516999;
            text-decoration: none;
        }
        A:hover
        {
            color: #17387d;
            text-decoration: underline;
        }
        .clear
        {
            line-height: 0;
            height: 0px;
            visibility: hidden;
            clear: both;
            font-size: 0px;
            overflow: hidden;
        }
        .bodyleft
        {
            width: 130px;
            overflow: hidden;
            margin: 0px 0px 0px 0px;
            padding-top: 0px;
            padding-left: 130px;
            padding-right: auto;
            padding-bottom: 0px;
        }
        .bodyright
        {
            width: 850px;
            overflow: hidden;
            margin: 0px 0px 0px 0px;
            padding-top: 0px;
            padding-left: auto;
            padding-right: auto;
            padding-bottom: 0px;
        }
        .rightcontent-top
        {
            line-height: 0;
            background: url(/Content/images/ihome/mainbg.gif) no-repeat;
            height: 6px;
            font-size: 0px;
        }
        .rightcontent
        {
        }
        .rightcontent-middle
        {
            border-bottom: #e0e0e0 0px solid;
            border-left: #e0e0e0 1px solid;
            padding-bottom: 4px;
            background-color: #fff;
            padding-left: 10px;
            padding-right: 10px;
            zoom: 1;
            border-top: #e0e0e0 0px solid;
            border-right: #e0e0e0 1px solid;
            padding-top: 4px;
        }
        .rightcontent-bottom
        {
            line-height: 0;
            background: url(/Content/images/ihome/mainbg.gif) no-repeat;
            height: 6px;
            font-size: 0px;
        }
        .base-set
        {
            padding-bottom: 10px;
            background-color: #fff;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 10px;
        }
        
        .blogtitle
        {
            line-height: 45px;
            padding-left: 50px;
            background: url(/Content/images/allpic.gif) no-repeat -390px 0px;
            font-size: 14px;
            font-weight: bold;
            text-align: left;
        }
        .tab-box
        {
            border-bottom: #2aa8de 2px solid;
            line-height: 22px;
            padding-left: 30px;
            zoom: 1;
            height: 23px;
        }
        .tab-box .createblog
        {
            padding-left: 15px;
            width: 75px;
            background: url(/Content/images/create_blog.gif) no-repeat 0px 2px;
            height: 19px;
            float: right;
        }
        .subbody-list
        {
        }
        .itembox
        {
            border-bottom: #ccc 1px dotted;
            padding-bottom: 10px;
            margin-top: 10px;
        }
        .itembox .item-left
        {
            width: 70px;
            float: left;
        }
        .itembox .item-right
        {
            text-align: left;
        }
        .itembox .item-title
        {
            line-height: 20px;
            height: 22px;
            font-size: 14px;
        }
        .itembox .title-left
        {
            line-height: 20px;
            width: 680px;
            float: left;
            height: 22px;
        }
        .itembox .time
        {
            line-height: 14px;
            float: right;
            color: #999;
            font-size: 12px;
        }
        .itembox .abstact
        {
            line-height: 23px;
            margin: 10px 0px;
            width: 780px;
            color: #666;
            font-size: 14px;
            text-align: left;
        }
        .itembox .comment
        {
            line-height: 20px;
            margin: 10px 0px;
            color: #666;
            font-size: 14px;
        }
        
        .wordwrap
        {
            word-wrap: break-word;
            word-break: break-all;
        }
    </style>
}
<div id="bodycontent">
    <div class="bodyleft">
    </div>
    <div class="bodyright">
        <div class="rightcontent">
            <div class="rightcontent-top">
            </div>
            <div class="rightcontent-middle">
                <div class="base-set">
                    <div class="blogtitle">
                        <h3>
                            人物志列表
                        </h3>
                    </div>
                    <div class="tab-box">
                        @Html.ActionLink("新建人物志", "Create", null, new { @class = "createblog" })
                    </div>
                    <div class="clear">
                    </div>
                    <div class="subbody-list">
                        @foreach (var item in Model)
                        {
                            <div class="itembox">
                                <div class="item-left" style="display: none;">
                                </div>
                                <div class="item-right">
                                    <div class="item-title" style="height: 20px; line-height: 20px">
                                        <span class="title-left">@Html.ActionLink(@item.PC_Title, "Details", new { id = item.PC_ID })</span>
                                        <span class="time wordwrap">@String.Format("{0:g}", item.PC_CreateDate)</span>
                                    </div>
                                    <div class="abstact">
                                        @(new HtmlString(@item.PC_Content.Substring(0, item.PC_Content.Length > 200 ? 200 : item.PC_Content.Length / 3)))...
                                    </div>
                                    <div class="comment">
                                        <span style="float: left;"><strong>标签：</strong>@item.PC_Comment</span> <span style="float: right;
                                            color: #999; font-size: 14px;">最后编辑时间： @String.Format("{0:g}", item.PC_UpdateDate)</span>
                                    </div>
                                    <div style="float: none; padding-left: 670px; font-size: 16px; height: 20px; line-height: 20px;">
                                        @Html.ActionLink("编辑", "Edit", new { id = item.PC_ID }, new { @class = "Edit" })
                                        |
                                        @Html.ActionLink("删除", "Delete", new { id = item.PC_ID }, new { @class = "Del" })</div>
                                </div>
                            </div>                           
                            <div class="clear">
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
